package com.zhuge_new.Adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.zhuge_new.Activity.RedExanmineActivity;

import java.util.List;

/**
 * Created by lenovo on 2018-09-27.
 */

public class RedFragmentAdapter extends FragmentPagerAdapter{


    private FragmentManager mfragmentManager;
    private List<Fragment> mlist;

    public RedFragmentAdapter(FragmentManager fm, List<Fragment> fragmentList) {
        super(fm);
        this.mlist=fragmentList;
    }


    @Override
    public Fragment getItem(int position) {
        return mlist.get(position);
    }


    @Override
    public int getCount() {
        return mlist.size();
    }
}
